Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: ensure imageNames are not empty strings #303

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

Foxboron
Copy link
Contributor

@Foxboron Foxboron commented Nov 8, 2023

In Typescript/Javascript an empty string split on newline is going to produce an array with an empty string.

=> "".split('\n')
[""]

This causes the action to produce a warning, unless pull-images is set to false.

Failed to get dockerfile path for image : Error: The process '/usr/bin/docker' failed with exit code 1

Filtering the list to remove any zero-length strings from the array solves this issue.

@Foxboron Foxboron requested a review from a team as a code owner November 8, 2023 13:16
@Foxboron
Copy link
Contributor Author

Foxboron commented Nov 8, 2023

Note the previously signed CLA is not valid for this code contribution.

Copy link

This PR is idle because it has been open for 14 days with no activity.

@github-actions github-actions bot added the idle Inactive for 14 days label Nov 22, 2023
Copy link
Collaborator

@davidgamero davidgamero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm thanks for the contribution!

@davidgamero
Copy link
Collaborator

@Foxboron looks like you need to format with npm run format

@github-actions github-actions bot removed the idle Inactive for 14 days label Jan 31, 2024
In Typescript/Javascript an empty string split on newline is going to
produce an array with an empty string.

    => "".split('\n')
    [""]

This causes the action to produce a warning, unless `pull-images` is set
to false.

    Failed to get dockerfile path for image : Error: The process '/usr/bin/docker' failed with exit code 1

Filtering the list to remove any zero-length strings from the array
solves this issue.

Signed-off-by: Morten Linderud <[email protected]>
@Foxboron
Copy link
Contributor Author

Foxboron commented Feb 1, 2024

Done, but I'll reiterate that the green checkmark from the CLA bot is not applicable for this commit.

@davidgamero
Copy link
Collaborator

@microsoft-github-policy-service rerun

@davidgamero
Copy link
Collaborator

do you mean because of the minimum line/file requirements?

@Foxboron
Copy link
Contributor Author

Foxboron commented Feb 5, 2024

Ah, if that is the portion that triggers then that is fine. I thought I had singed it for my personal contributors at some point and can't tell form the check why it was green.

Feel free to merge, thanks :)

Copy link
Collaborator

@davidgamero davidgamero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@davidgamero davidgamero merged commit 52dfbef into Azure:main Feb 5, 2024
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants